package com.wkbb.common.enums;

public enum TeacherCourseEnum {
    /**
     * 班主任
     */
    MASTERTEACHER(2, "班主任"),
    /**
     * 任课老师
     */
    TEACHERCOURSE(3, "任课老师");


    private Integer value;

    private String desc;

    private TeacherCourseEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }


    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public static String getDesc(Integer value) {
        for (TeacherCourseEnum teacherCourseEnum : TeacherCourseEnum.values()) {
            if (teacherCourseEnum.getValue().intValue() == value.intValue()) {
                return teacherCourseEnum.getDesc();
            }
        }
        return null;
    }
}
